package com.baibei.ebec.user.register;


import com.baibei.basic.IPresenter;
import com.baibei.basic.IPresenterView;
import com.baibei.basic.ISendSmsView;

/**
 * 登录协议
 * Created by ChenRui on 2017/5/3 0003 19:33.
 */
public interface RegisterContract {

    interface Presenter extends IPresenter {

        void register();

        void sendSMS();

        /**
         * 是否处于短信倒计时
         */
        boolean isInCountdown();

        void cancel();
    }

    interface View extends IPresenterView, ISendSmsView {

        String getMobile();

        String getPassword();

        String getSmsCode();

        /**
         * 获取邀请码
         */
        String getInvitationCode();

        String getImei();

        String getInviteCode();

        void onRegisterSuccess();

        void onRegisterFailed(String msg);

        /**
         * 企业还是个人类型
         *
         * @return 取值参考：{@link com.baibei.ebec.sdk.IUserApi#TYPE_ENTERPRISE}
         */
        int getType();
    }
}
